*calls dofiles in order

*to run these files, you will need to replace the following path with the corresponding path from your own computer

global mainpath "~/Dropbox/Maintenance/cleaning_experiment_full_paper/Replication_Folder"
cd $mainpath

* paths
global path_graphs "graphs"
global path_stata_graphs "stata_graphs"
global path_supplementary_graphs "supplementary_graphs"
global path_tables "tables"
global path_data "data"

*Analyze data collected in January 2023

do code/analysis_round1.do

*Analyze data collected in May 2023

do code/analysis_round2.do

*pool figures that show both rounds

*merge graphs

*presence of contaminants

foreach v in ecoli_present tot_coli_present asinh_ecoli asinh_tot_coli {
	graph use $path_stata_graphs/`v'_results, name(`v'_results, replace)
}


graph combine ecoli_present_results ecoli_present_results_round2  tot_coli_present_results  tot_coli_present_results_round2, iscale(0.55) xsize(10.5) ysize(12.5) name(presence_results, replace)
graph export $path_graphs/presence_results.jpg, width(3150) replace


*knowledge and practice

foreach c in practice_comparisons_round1 practice_comparisons_round2 knowledge_comparisons_round1 knowledge_comparisons_round2 {
	graph use $path_stata_graphs/`c', name(`c', replace)
}

graph combine knowledge_comparisons_round1 knowledge_comparisons_round2  practice_comparisons_round1 practice_comparisons_round2, iscale(0.6) xsize(13) ysize(14) name(knowledge_results, replace)
graph export $path_graphs/knowledge_results.jpg, width(3900) replace

*concentration 

graph combine asinh_ecoli_results asinh_ecoli_results_round2 asinh_tot_coli_results asinh_tot_coli_results_round2, iscale(0.55) xsize(10.5) ysize(12.5) name(concentration_results, replace)
graph export $path_supplementary_graphs/concentration_results.jpg, width(3150) replace




